<html>
<head>
	<link rel="icon" href="data:;base64,=" />
	<title>Simple js-lzma demo</title>
	<script src="../src/lzma.js"></script>
	<script src="../src/lzma.shim.js"></script>
</head>
<body>
	<script>
		var oReq = new XMLHttpRequest();
		oReq.open("GET", '../data/hello-world.txt.lzma', true);
		oReq.responseType = "arraybuffer";
		oReq.onload = function(oEvent)
		{
			var buffer = oReq.response;
			var input = new LZMA.iStream(buffer);
			var output = new LZMA.oStream();
			LZMA.decompressFile(input, output);
			alert(output);
		};
		oReq.send();
	</script>
</body>
</html>
